Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: start fixing build errors for zig 0.12.0 #30

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rupurt
Copy link

@rupurt rupurt commented Feb 14, 2024

I've started updating zdb to try and get it running on zig 0.12 & the latest changes on main for zig-odbc

std.meta.trait was removed and I need to resolve the module import errors

zig build test
test
└─ zig test Debug native 3 errors
src/ParameterBucket.zig:3:22: error: no module named 'zig-odbc' available within module root
const odbc = @import("zig-odbc");
                     ^~~~~~~~~~
referenced by:
    test.SqlParameter defaults: src/ParameterBucket.zig:128:21
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
src/ParameterBucket.zig:84:59: error: root struct of file 'meta' has no member named 'trait'
    const data_buffer: []const u8 = if (comptime std.meta.trait.isZigString(ParamType))
                                                          ^~~~~
/nix/store/hc4lsx51ha985cbvks9r0n5gc25ph2mh-zig-0.12.0-dev.2644+42fcca49c/lib/std/meta.zig:1:1: note: struct declared here
const std = @import("std.zig");
^~~~~
src/ParameterBucket.zig:84:59: error: root struct of file 'meta' has no member named 'trait'
    const data_buffer: []const u8 = if (comptime std.meta.trait.isZigString(ParamType))
                                                          ^~~~~
/nix/store/hc4lsx51ha985cbvks9r0n5gc25ph2mh-zig-0.12.0-dev.2644+42fcca49c/lib/std/meta.zig:1:1: note: struct declared here
const std = @import("std.zig");
^~~~~
error: the following command failed with 3 compilation errors:
/nix/store/hc4lsx51ha985cbvks9r0n5gc25ph2mh-zig-0.12.0-dev.2644+42fcca49c/bin/zig test /Users/alex/workspace/mjoerussell/zdb/zig-cache/o/f87c9835fef3336edb0dff8d4225a950/libzigodbc.0.0.0.dylib -rpath /Users/alex/workspace/mjoerussell/zdb/zig-cache/o/f87c9835fef3336edb0dff8d4225a950 -ODebug -Mroot=/Users/alex/workspace/mjoerussell/zdb/src/ParameterBucket.zig -lc -fno-emit-bin --cache-dir /Users/alex/workspace/mjoerussell/zdb/zig-cache --global-cache-dir /Users/alex/.cache/zig --name test --listen=-
Build Summary: 2/4 steps succeeded; 1 failed (disable with --summary none)
test transitive failure
└─ zig test Debug native 3 errors
error: the following build command failed with exit code 1:
/Users/alex/workspace/mjoerussell/zdb/zig-cache/o/44b0248429705ec468b74825637a9173/build /nix/store/hc4lsx51ha985cbvks9r0n5gc25ph2mh-zig-0.12.0-dev.2644+42fcca49c/bin/zig /Users/alex/workspace/mjoerussell/zdb /Users/alex/workspace/mjoerussell/zdb/zig-cache /Users/alex/.cache/zig --seed 0x926bb5f -Z9fcae9a11024e75c test

@rupurt rupurt marked this pull request as draft February 14, 2024 08:00
@rupurt rupurt force-pushed the use-latest-zig-odbc branch from 1b79421 to 9d99de4 Compare February 15, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant